all:
	arm-linux-gcc -c -o uart.o uart.c
	arm-linux-gcc -c -o main.o main.c
	arm-linux-gcc -c -o start.o start.S
	arm-linux-gcc -c -o sdram.o sdram.c
	#arm-linux-ld -Ttext 0 -Tdata 0x30000000 start.o uart.o sdram.o main.o -o sdram.elf
	arm-linux-ld -T sdram.lds start.o uart.o sdram.o main.o -o sdram.elf
	arm-linux-objcopy -O binary -S sdram.elf sdram.bin
	arm-linux-objdump -D sdram.elf > sdram.dis
clean:
	rm *.bin *.o *.elf *.dis
	